//
//  LaunchViewController.m
//  DongFeng_Online-Banking-APP
//
//  Created by wxt on 2021/4/28.
//

#import "LaunchViewController.h"
#import "AlertView.h"
#import "MoblieViewController.h"
@interface LaunchViewController ()<AlertViewDelegate>

@property(nonatomic,strong)UIWindow * window;
@property(nonatomic,strong)UIView *bgView;

@end

@implementation LaunchViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    
    
                AlertView * alter = [AlertView alterViewWithtitle:@"登录失败" andContstr:@"您的证书已过期，需重新认证" andBtnTitle:@"继续" withFrame:CGRectMake(36, kHeight/2-70, kWidth-72, 140)];

    alter.delegate = self;
//    UIWindow * window = [[UIApplication sharedApplication]keyWindow];
    //2. 创建背景视图
    self.bgView = [[UIView alloc]init];
    
    self.bgView.frame = self.view.bounds;
    self.bgView.backgroundColor = [[UIColor blackColor]colorWithAlphaComponent:0.4];
    self.bgView.userInteractionEnabled = YES;
    [self.bgView addSubview:alter];
    [self.view addSubview:  self.bgView];
    
    
    
              
    
    
    
    
    
    // Do any additional setup after loading the view from its nib.
}
-(void)ViewCancelBtn{
    
    [self.bgView removeFromSuperview];
    
    MoblieViewController * mobVC =[[MoblieViewController alloc]init];
    mobVC.userName = self.userName;
    mobVC.pushPath = @"timeCer";
    mobVC.modalPresentationStyle = 0;
    [self presentViewController:mobVC animated:YES completion:nil];
    
}
/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end
